There are only two ways: either back to Kanchanaburi or by crossing the border to Payathonzu in Myanmar.